#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSerialPort>
#include <QString>
#include <QDebug>
#include <QPaintEvent>
#include <QPainter>
#include <QList>

#include "form.h"
#include "console.h"
#include "command.h"
#include "script_thread.h"

#define WINDOWN_NUM 6

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


private slots:
    void on_pushButton_clicked();

    void on_lineEdit_output_textChanged(const QString &arg1);


    void on_pushButton_startall_clicked();


private:
    Ui::MainWindow *ui;
    Form            *form[WINDOWN_NUM];
    console         *consol;
	Command			*tools;
	Script_thread	*script;
    bool            start_all_flag;


};

#endif // MAINWINDOW_H
